<template>
    <div class="residence-type">
        <div class="contents">
            <registerTitle>入驻类型</registerTitle>
            <div class="login-form">
                <div class="title">选择入驻类型</div>
                <div class="form">
                    <div class="form-item" @click="goRegister(1)">
                        <img :src="us" alt="">
                        <div class="msg">项目部</div>
                    </div>
                    <div class="form-item" @click="goRegister(2)">
                        <img :src="qy" alt="">
                        <div class="msg">企业</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>
<script>
export default {
    name: 'residenceType',
    data () {
        return {
            logos: require('@/assets/logos.jpg'),
            us: require('@/assets/register/us.png'),
            qy: require('@/assets/register/qy.png')
        }
    },
    methods: {
        goRegister (type) {
            let url = type == 1 ? '/inner-information' : '/inner-account-information'
            this.$router.push(url)
        }
    }
}
</script>
<style lang="less" scoped>
.residence-type {
    .contents {
        width: 1000px;
        height: 635px;
        margin: 40px auto 0;
        .logo-box {
            height: 70px;
            margin-bottom: 24px;
            font-size: 30px;
            color: #333;
            display:flex;
            align-items: center;
            img {
                display: inline-block;
                width: 175px;
                vertical-align: middle;
                margin-right: 24px;
            }
        }
        .login-form {
            width: 100%;
            height: 540px;
            background: #fff;
            .title {
                width: 100%;
                height: 60px;
                line-height: 60px;
                padding-left: 20px;
                font-size: 16px;
                color: #333;
                border-bottom: 1px solid #E9EDF4;
                display: block;
            }
            .form {
                width: 100%;
                height: 100%;
                display: flex;
                padding: 100px;
                .form-item {
                    flex: 1;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    flex-direction: column;
                    cursor: pointer;
                    img {
                        width: 210px;
                        height: 210px;
                        border-radius: 50%;
                        box-shadow:0px 4px 32px 0px rgba(229,110,0,0.44);
                    }
                    .msg {
                        padding-top: 26px;
                        font-size: 16px;
                        color: #333;
                    }
                }
            }
        }
    }
}
</style>